#ifndef REGISTERDIALOG_H
#define REGISTERDIALOG_H

#include <QDialog>
#include <QJsonObject>
#include "protocol.h"
#include "models.h"

namespace Ui {
class RegisterDialog;
}

class RegisterDialog : public QDialog {
    Q_OBJECT
    
public:
    explicit RegisterDialog(QWidget *parent = nullptr);
    ~RegisterDialog();
    
private slots:
    void on_registerButton_clicked();
    void on_cancelButton_clicked();
    void onMessageReceived(MessageType type, const QJsonObject& data);
    
private:
    Ui::RegisterDialog *ui;
};

#endif // REGISTERDIALOG_H

